package com.ssr.ld.utils;

import java.text.SimpleDateFormat;
import java.util.Calendar;

public class DateUtils {
	
	public static String getCurrentDay(String flag) {
		SimpleDateFormat countDateFormat = new SimpleDateFormat(flag);
		Calendar curCalendar = Calendar.getInstance();
		String curDate = countDateFormat.format(curCalendar.getTime());
		return curDate;
	}
	
	public static String getCurrentDay(String flag,int vetor) {
		SimpleDateFormat countDateFormat = new SimpleDateFormat(flag);
		Calendar curCalendar = Calendar.getInstance();
		curCalendar.add(Calendar.DATE,vetor);
		String curDate = countDateFormat.format(curCalendar.getTime());
		return curDate;
	}
}
